class Employee
  attr_reader :id, :login, :fname, :lname, :passwordmd5
  attr_accessor :id, :login, :fname, :lname, :passwordmd5
  def initialize(id, login, fname,lname, passwordmd5)
    @id=id
    @login=login
    @fname=fname
    @lname=lname
    @passwordmd5=passwordmd5
  end
end
def employee_login_check(login, password, employees)
  employees.each do |employee|
    if employee.login==login && employee.passwordmd5 == password
      return employee
      break
    end
  end
  false
end

def does_employee_login_not_exist(login, employees)
  does_not_exist=true
  employees.each do |employee|
    if employee.login == login
      does_not_exist=false
      break
    end
  end
  does_not_exist
end